package com.koron.sinoprobe.web.ledger.bean.vo;

import com.koron.bean.base.Attachment;
import com.koron.sinoprobe.web.ledger.bean.entity.SpReport;
import com.koron.sinoprobe.web.plan.bean.entity.SpPlanMilestone;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author twcao
 * @title: SpReportVO
 * @projectName GDH_EAM_V2
 * @description: 项目汇报
 * @date 2021/12/717:58
 */
@Data
@ApiModel(description = "项目汇报")
public class SpReportVO extends SpReport {

    @ApiModelProperty("附件")
    private List<Attachment> attach;

    @ApiModelProperty("里程碑信息")
    private SpPlanMilestone milestone;

    public BigDecimal getNoNullInvestment() {
        return super.getInvestment() == null ? BigDecimal.valueOf(0) : super.getInvestment();
    }
}
